package com.jm.datagather.alarm;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import tk.mybatis.spring.annotation.MapperScan;

@Slf4j
@EnableFeignClients(basePackages = "com.jm.datagather.*")
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.jm.datagather.alarm.mapper")
public class DatagatherAlarmApp {

    public static void main(String[] args){
        ConfigurableApplicationContext context = SpringApplication.run(DatagatherAlarmApp.class,args);
        String port = context.getEnvironment().getProperty("server.port");
        log.info("start port:{}",port);
    }

}
